package com.example.blog.service;

import com.example.blog.common.pojo.request.AddBlogParam;
import com.example.blog.common.pojo.request.UpBlogParam;
import com.example.blog.common.pojo.response.BlogInfoResponse;
import com.example.blog.mapper.BlogInfoMapper;

import java.util.List;

//接口来提供服务,让别人来依赖接口,比如BlogController依赖这里的BlogService
public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogParam param);

    Boolean updateBlog(UpBlogParam upBlogParam);

    Boolean deleteBlog(Integer blogId);

}
